/* =================================== */
/* CSS for control sap.m/ListItemBase  */
/* Base theme                          */
/* =================================== */

.sapMLIB,
.sapMLIBImgNav,
.sapMLIBIconDet,
.sapMLIBIconDel {
	box-sizing: border-box;
}

.sapMLIB {
	display: -webkit-box;
	display: flex;
	-webkit-box-align: center;
	align-items: center;
	position: relative;
	background: @sapUiListBackground;
	border-bottom: 1px solid @sapUiListBorderColor;
	padding: 0 1rem 0 1rem;
}

.sapMLIBContent {
	-webkit-box-flex: 1;
	flex: 1 1 auto;
	max-width: 100%;
}

.sapMLIBTypeNavigation {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.sapMLIBFocusable:focus {
	outline: 1px dotted @sapUiContentFocusColor;
	outline-offset: -1px;
}

.sapMLIB:not(.sapMLIBFocusable):focus,
.sapMListTblSubRow:focus {
	outline: none;
}

/* IE ignores outline-offset. Use an overlay: */
.sapMLIBLegacyOutline:focus {
	outline: none;
	position: relative;
}

.sapMLIBLegacyOutline:focus::before {
	content: "";
	border: 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
  	border: 1px dotted @sapUiContentFocusColor;
}

.sapMLIBSelectS,
.sapMLIBSelectSL,
.sapMLIBSelectM,
.sapMLIBSelectD {
	width:2.75em;
}

.sapMLIBActionable {
	cursor: pointer;
}

.sapMLIBImgNav,
.sapMLIBImgDet,
.sapMLIBImgDel,
.sapMLIBIconDet,
.sapMLIBSelectS,
.sapMLIBSelectSL,
.sapMLIBSelectM,
.sapMLIBSelectD,
.sapMLIBCounter {
	-webkit-box-flex: 0;
	flex: none;
}

.sapMLIBHighlight {
	position: absolute;
	width: 0.375rem;
	bottom: 0;
	left: 0;
	top: 0;
}

.sapMLIBHighlight + .sapMLIBContent,
.sapMListHighlight .sapMLIBContent:first-child {
	margin-left: 0.375rem;
}

.sapMLIBHighlight + .sapMLIBSelectSL,
.sapMLIBHighlight + .sapMLIBSelectM,
.sapMListHighlight > .sapMLIB > .sapMLIBSelectSL:first-child,
.sapMListHighlight > .sapMLIB .sapMLIBSelectM:first-child  {
	margin-left: -0.625rem;
}

.sapMLIBHighlightInformation {
	background: @sapUiHighlight
}
.sapMLIBHighlightSuccess {
	background: @sapUiSuccessBorder
}
.sapMLIBHighlightWarning {
	background: @sapUiWarningBorder
}
.sapMLIBHighlightError {
	background: @sapUiErrorBorder
}

/* IE ignores outline-offset. Use an overlay: */
.sapMLIBFocusable.sapMLIBLegacyOutline:focus {
	outline: none;
}

.sapMListModeDelete .sapMLIB,
.sapMListModeSingleSelect .sapMLIB,
.sapMLIB.sapMLIBTypeNavigation {
	padding-right: 0;
}

.sapMListShowSeparatorsNone .sapMLIBShowSeparator {
	border-bottom: 1px solid transparent;
}

.sapMListShowSeparatorsInner .sapMLIBShowSeparator:last-child {
	border-bottom-color: transparent;
}

.sapMLIB.sapMListTblSupRow {
	border-bottom: 0;
}

.sapMLIBSelectSL,
.sapMLIBSelectM {
	width:3rem;
	margin-left: -1rem;
}

.sapMLIBSelectD,
.sapMLIBSelectS {
	width: 3rem;
	text-align: center;
}

.sapMLIBSelectD {
	cursor: pointer;
}

.sapMLIBSelectD > .sapUiIcon {
	font-size: 1.5rem;
	color: @sapUiButtonIconColor;
	font-weight: normal;
	width : 100%;
}

.sapMLIBSelectAnimation {
	-webkit-animation-duration: 0.25s;
	-webkit-animation-timing-function: ease-in;
	-webkit-animation-name: resize;
	animation-duration: 0.25s;
	animation-timing-function: ease-in;
	animation-name: resize;
}

@-webkit-keyframes resize {
	0% {
		width: 0;
	}
	100% {
		width: 3rem;
	}
}

@keyframes resize {
	0% {
		width: 0;
	}
	100% {
		width: 3rem;
	}
}

.sapMLIBUnselectAnimation {
	-webkit-animation-duration: 0.25s;
	-webkit-animation-timing-function: ease-in;
	-webkit-animation-name: close;
	animation-duration: 0.25s;
	animation-timing-function: ease-in;
	animation-name: close;
}

@-webkit-keyframes close {
	0% {
		width: 3rem;
	}
	100% {
		width: 0;
	}
}

@keyframes close {
	0% {
		width: 3rem;
	}
	100% {
		width: 0;
	}
}

.sapMLIBUnread,
.sapMLIBUnread > .sapMListTblCell,
.sapMLIBUnread + .sapMListTblSubRow {
	font-family: @sapUiFontFamily;
	font-weight: bold;
}

.sapMLIBCounter {
	font-size: 0.875rem;
	color: @sapUiContentMarkerTextColor;
	padding-left: 1rem;
}

.sapMLIBImgNav {
	width: 3rem;
	height: 3rem;
	line-height: 3rem;
	font-size: 0.75rem;
	color: @sapUiContentNonInteractiveIconColor;
}

.sapMLIBIconDet {
	width: 3rem;
	height: 3rem;
	line-height: 3rem;
	font-size: 1.375rem;
	color: @sapUiButtonIconColor;
	text-shadow: @sapUiShadowText;
	margin-right: -1rem;
	margin-left: 0.5rem;
	-webkit-box-flex: 0;
	flex: none;
}

.sapMLIBActive .sapMLIBImgNav,
.sapMLIBActive .sapMLIBIconDet,
.sapMLIBActive .sapMLIBIconDel,
.sapMLIBIconDet:active,
.sapMLIBIconDel:active {
	color: @sapUiListActiveTextColor;
	background: @sapUiListActiveBackground;
	text-shadow: none;
}

html.sap-desktop .sapMLIBImgNav:focus,
html.sap-desktop .sapMLIBIconDet:focus,
html.sap-desktop .sapMLIBIconDel:focus {
	outline: 1px dotted @sapUiContentFocusColor;
	outline-offset: -1px;
}

.sapMLIBImgDel {
	height: 3rem;
	width: 3rem;
}

.sapMLIBHoverable:hover {
	background : @sapUiListHoverBackground;
}

.sapMLIB.sapMLIBSelected {
	background: @sapUiListSelectionBackgroundColor;
}

.sapMLIBHoverable.sapMLIBSelected:hover {
	background : @sapUiListSelectionHoverBackground;
}

.sapMLIB.sapMLIBActive {
	color: @sapUiListActiveTextColor;
	background: @sapUiListActiveBackground;
}

.sapMLIBActive div,
.sapMLIBActive .sapMLIBCounter {
	color: @sapUiListActiveTextColor;
}

/* Compact size */
.sapUiSizeCompact .sapMLIBSelectSL,
.sapUiSizeCompact .sapMLIBSelectM {
	padding-left: 0.5rem;
	width: 2.5rem;
}

.sapUiSizeCompact .sapMLIBImgNav,
.sapUiSizeCompact .sapMLIBIconDet{
	height: 2rem;
	line-height: 2rem;
}